package com.demo.server;

import com.demo.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

public interface UserService {
    //查询单个用户
    public User findUser(Long id);

    //查询所有用户
    public List<User> findUserList();

    //添加用户
    public Boolean addUser(User user);

    //删除用户信息
    public Boolean deleteUser(Long id);

    //修改用户信息
    public Boolean updateUser(User user);
}
